Searched hist:"88 eb7c29" (Results 1 – 1 of 1) sorted by relevance
/qemu/ |
H A D | iothread.c | 88eb7c29 Thu Feb 27 10:48:41 GMT 2014 Stefan Hajnoczi <stefanha@redhat.com> iothread: stash thread ID away
Keep the thread ID around so we can report it via QMP.
There's only one problem: qemu_get_thread_id() (gettid() wrapper on Linux) must be called from the thread itself. There is no way to get the thread ID outside the thread.
This patch uses a condvar to wait for iothread_run() to populate the thread_id inside the thread.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|